﻿// --------------------------------------------------------------------------------------------------------------------
// <copyright file="IValidable.cs" company="">
//   
// </copyright>
// <summary>
//   The Validable interface.
// </summary>
// --------------------------------------------------------------------------------------------------------------------

namespace Libium.Validation
{
    using System.Collections.Generic;

    /// <summary>
    ///   The Validable interface.
    /// </summary>
    public interface IValidable
    {
        #region Public Properties

        /// <summary>
        ///   Gets a value indicating whether valid.
        /// </summary>
        bool Valid { get; }

        /// <summary>
        ///   Gets the validation records.
        /// </summary>
        IEnumerable<ValidationRecord> ValidationRecords { get; }

        #endregion

        #region Public Methods and Operators

        /// <summary>
        ///   The validate.
        /// </summary>
        void Validate();

        #endregion
    }
}